package com.fram.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fram.bean.api.user.response.UserAddressSearchResponse;
import com.fram.entity.UserReceivingAddress;

public interface UserReceivingAddressMapper {
	// 删除
	int deleteByPrimaryKey(Long id);

	int insert(UserReceivingAddress record);

	// 增加用这个
	int insertSelective(UserReceivingAddress record);

	// 根据主键id查询 根据地址的id
	UserReceivingAddress selectByPrimaryKey(Long id);

	// 修改用这个
	int updateByPrimaryKeySelective(UserReceivingAddress record);

	int updateByPrimaryKey(UserReceivingAddress record);

	// 根据用户id 查询用户所有地址
	List<UserAddressSearchResponse> selectAddressListByUserId(@Param("userId") Long userId, @Param("isDefault") Integer isDefault);
}